<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 
class home extends CI_Controller {

	function __construct()
	{
		parent::__construct();

		$this->load->library('tank_auth');
		$this->load->library('bamer_lib');
		$this->load->helper('url');
		$this->load->model('home_model');

		if (!$this->tank_auth->is_logged_in()) redirect('/auth/login/');
		$this->lang->load('tank_auth');

		

		// Try to autologin
	}

 
    function index() {
    	$data['banyak_perusahaan'] = $this->home_model->get_banyak_perusahaan();
    	$data['sudah'] = $this->home_model->get_sudah();
    	$data['belum'] = $this->home_model->get_belum();
    	$data['belum_tugas_marketing'] = $this->home_model->get_belum_tugas_marketing();
    	$data['belum_tugas_followup'] = $this->home_model->get_belum_tugas_followup();
    	$data['menu'] = 'dashboard';
        $data['head'] = 'layout/head';
        $data['navbar'] = 'layout/navbar';
        $data['content'] = 'layout/home';
        $this->load->view('layout/inner', $data);
    }
}